<template>
    <div id="detail">
       <h2>detail</h2>
       <h3><input type="text" :value="myMode" placeholder="输入你要修改的mode"><br>
         mode:{{getMode}}</h3>
        <button @click="reqData">request</button>
        <button @click="changeMode">修改mode</button>
        <ul v-if="dataList">
            <div>请求的结果为：</div>
            <li v-for="item in dataList">
                {{item}}
            </li>
        </ul>
        <div v-else>
            还未执行Ajax请求
        </div>

    </div>
</template>
<script src="./detail.js"></script>
